<?php
if ($_SESSION["session"]["key"] == "Supper Administrator" || $_SESSION["session"]["key"] == "Administrator" || $_SESSION["session"]["key"] == "Publisher" || $_SESSION["session"]["key"] == "Editor" || $_SESSION["session"]["key"] == "Author") {
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" >
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
            <meta name="robots" content="index, follow" />
            <title> Bảng điều khiển </title>

            <link href="css/icon.css" rel="stylesheet" type="text/css" />
            <link href="css/template.css" rel="stylesheet" type="text/css" />
            <link rel="stylesheet" type="text/css" href="css/rounded.css" />

            <!--[if IE 7]>
            <link href="css/ie7.css" rel="stylesheet" type="text/css" />
            <![endif]-->

            <!--[if lte IE 6]>
            <link href="css/ie6.css" rel="stylesheet" type="text/css" />
            <![endif]-->

            <script language="javascript" src="javascript/javascript.js"></script>

            <script type="text/javascript" src="javascript/mootools.js"></script>
            <script type="text/javascript" src="javascript/menu.js"></script>
            <script type="text/javascript" src="javascript/index.js"></script>
            <script language="javascript" type="text/javascript" src="calendar/popcalendar.js"></script>

            <?php
            $msg = '';
            if (isset($GLOBALS['msg'])) {
                $msg = trim($GLOBALS['msg']);
            }
            if ($msg != "") {
                echo "<script type=\"text/javascript\">alert('" . $GLOBALS['msg'] . "');</script>";
            }
            ?>


        </head>
        <body id="minwidth-body">
            <!-- header -->
            <?php include("$com_folder/com_header/com_header.html.php"); ?>

            <?php
            include_once ADMIN_COM . DS . 'com_unit' . DS . 'unit_component.php';
            $controller = new UnitComponent();
            $controller->invoke();
            ?>

            <!-- footer -->
            <?php include("$com_folder/com_footer/com_footer.html.php"); ?>
        </body>
    </html>
    <?php
} else {
    include("404.php");
    exit();
}
?>